﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SpreadSheetFramework.Util.Validate
{
    public class ObjValidateInt32Greater:ObjValidateInt32
    {
        public int Delta { get; set; }
        public ObjValidateInt32Greater(string errStr,int delta) : base(errStr)
        {
            Delta = delta;
        }

        public override bool IsValidate(object value)
        {
            return base.IsValidate(value)&&Convert.ToInt32(value.ToString())>Delta;
        }
    }
}